package com.elontian.http.async2.strategy.impl;

import android.widget.ImageView;

import com.elontian.http.async2.strategy.IAsyncStrategy;
import com.elontian.http.async2.strategy.IFactory;

public class LoadImgStrategyFactory implements IFactory {

	private String url;
	private int width;
	private int height;
	private ImageView view;

	public LoadImgStrategyFactory(String url, int width, int height, ImageView view) {
		super();
		this.url = url;
		this.width = width;
		this.height = height;
		this.view = view;
	}

	@Override
	public IAsyncStrategy createStrategy() {
		// TODO Auto-generated method stub
		return new AsyncLoadImgStrategy(url, width, height, view);
	}

}
